﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using Pharmacy.Settings.BusinessLayer;

public partial class Admin_SettingPrefix : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            txtExportAdjust.Text = ServiceFacade.SettingsHelper.EAPrefix;
            txtImportAdjust.Text = ServiceFacade.SettingsHelper.ImportAjustPrefix;
            txtReturnGoods.Text = ServiceFacade.SettingsHelper.ReturnGoodPrefix;
            TxtPo.Text = ServiceFacade.SettingsHelper.POPrefix;
            txtGrn.Text = ServiceFacade.SettingsHelper.GRNPrefix;
            txtPrescription.Text = ServiceFacade.SettingsHelper.PrescriptionPrefix;
        }
    }
    protected void btnview_Click(object sender, EventArgs e)
    {
        ServiceFacade.SettingsHelper.EAPrefix = txtExportAdjust.Text;
        ServiceFacade.SettingsHelper.ImportAjustPrefix = txtImportAdjust.Text;
        ServiceFacade.SettingsHelper.ReturnGoodPrefix = txtReturnGoods.Text;
        ServiceFacade.SettingsHelper.POPrefix = TxtPo.Text;
        ServiceFacade.SettingsHelper.GRNPrefix = txtGrn.Text;
        ServiceFacade.SettingsHelper.PrescriptionPrefix = txtPrescription.Text;
    }
}
